package adv4;

import java.io.File;
import java.io.IOException;

/**
 * @author oldliu
 * @since 1.0
 */
public class FileTest3 {
    public static void main(String[] args) {
        File f = new File("d:/tmp/java86/team1/machao");
        if (f.exists() == false) {
            boolean m = f.mkdirs();
            System.out.println(m);
        }
        System.out.println(">>>>>>>>>>>>");
        File f2=new File("d:/tmp/java86/花名册.txt");
        if(f2.exists()){
            f2.delete();
            System.out.println("文件"+f2+"被删除了");
            return;
        }
        try {
            f2.createNewFile();
        } catch (IOException e) {
             e.printStackTrace();
        }
    }
}
